/*
 * ContextLearnerTester.cpp
 *
 *  Created on: May 24, 2011
 *      Author:
 *      Johan Granberg
 *      Alper Aydemir
 */

#include "ContextLearner.h"

#include <stdio.h>
#include <sys/time.h>
#include <iostream>
#include <time.h>
#include <fstream>
#include <stdlib.h>
#include <string.h>
#include <math.h> 
#include <vector>

using namespace findobject;
int main(){
printf("testing...1\n");

	std::vector<int> framenumbers;

	for(int i = 2; i < 300; i+=1){
		//printf("%i mod 3 = %i\n",i,i%3);
		//if(%i != 1)
		//{
		//printf("%i mod 3 = %i\n",i,i%3);
		printf("%i\n",i);
		framenumbers.push_back(i);
		//}
	}

	//framenumbers.push_back(28);
	//framenumbers.push_back(52);

	ContextLearner p;

	p.setTrainingObject("cups");
	p.addTrainingImages("./cvap_data/floor6/624/",framenumbers);
	p.setFeatureTypes( NORMALSUM_FEATURE | POSSUM_FEATURE);
	p.train();

printf("4\n");
	return 0;
}
